package co.com.javeriana.aes.patrones.universalbank.ldap.service;

import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.ejb.Stateless;

/**
 *
 * @author jonathan
 */
@WebService(serviceName = "Ldap")
@Stateless()
public class Ldap {

    /**
     * This is a sample web service operation
     */
    @WebMethod(operationName = "validateUser")
    public boolean hello(@WebParam(name = "login") String login, @WebParam(name = "password") String password) {        
        return co.com.javeriana.aes.patrones.universalbank.core.ldap.Connection.validateUser(login, password);        
    }
}
